package cn.wolfcode.luowowo.article.service;

import cn.wolfcode.luowowo.article.domain.Destination;
import cn.wolfcode.luowowo.article.domain.DestinationThemeRegion;
import cn.wolfcode.luowowo.article.query.DestinationThemeRegionQuery;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * @Author: linzhongjian
 * @email 911976613@qq.com
 * @Date: 2019/9/27 10:11
 * <p>
 * 功能描述:当季推荐接口
 */
public interface IDestinationThemeRegionService {

    /**
     * 分页查询
     * @param qo
     * @return
     */
    PageInfo query(DestinationThemeRegionQuery qo);
    /**
     * 添加/更新
     * @param destinationThemeRegion
     */
    void saveOrUpdate(DestinationThemeRegion destinationThemeRegion);
    /**
     * 查询所有
     * @return
     */
    List<DestinationThemeRegion> list();

    /**
     * 根据月份查询目的地集合
     * @param rid
     * @return
     */
    List<Destination> getDestByRegionId(Long rid);
}
